package com.jiangyifen.robot.core.session;

import java.util.Map;

import com.jiangyifen.framework.util.UUIDUtil;
import com.jiangyifen.robot.core.Robot;
import com.jiangyifen.robot.entity.ChatNodeEntity;
import com.jiangyifen.robot.entity.ScenarioEntity;

public class RobotSession {
	
	private String id = UUIDUtil.randomUUIDNoBar();
	
	private Robot robot;
	
	private ScenarioEntity scenarioEntity;
	private Map<Long, ChatNodeEntity> chatNodeEntityMap;
	private ChatNodeEntity firstChatNodeEntity;
	
	//当前对话中正进行到的节点。sayNode时更新
	private ChatNodeEntity currentChatNodeEntity;
	
	private String phoneNumber;
	private String callId = "";
	private String vmwCallUuid = "";
	
	// 当前主节点（主节点一定是一串的）
	private ChatNodeEntity lastMainChatNodeEntity;
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public ScenarioEntity getScenarioEntity() {
		return scenarioEntity;
	}

	public void setScenarioEntity(ScenarioEntity scenarioEntity) {
		this.scenarioEntity = scenarioEntity;
	}

	public Map<Long, ChatNodeEntity> getChatNodeEntityMap() {
		return chatNodeEntityMap;
	}

	public void setChatNodeEntityMap(Map<Long, ChatNodeEntity> chatNodeEntityMap) {
		this.chatNodeEntityMap = chatNodeEntityMap;
	}

	public ChatNodeEntity getFirstChatNodeEntity() {
		return firstChatNodeEntity;
	}

	public void setFirstChatNodeEntity(ChatNodeEntity firstChatNodeEntity) {
		this.firstChatNodeEntity = firstChatNodeEntity;
	}

	public Robot getRobot() {
		return robot;
	}

	public void setRobot(Robot robot) {
		this.robot = robot;
	}

	public ChatNodeEntity getCurrentChatNodeEntity() {
		return currentChatNodeEntity;
	}

	public void setCurrentChatNodeEntity(ChatNodeEntity currentChatNodeEntity) {
		this.currentChatNodeEntity = currentChatNodeEntity;
	}

	public ChatNodeEntity getLastMainChatNodeEntity() {
		return lastMainChatNodeEntity;
	}

	public void setLastMainChatNodeEntity(ChatNodeEntity currentMainChatNodeEntity) {
		this.lastMainChatNodeEntity = currentMainChatNodeEntity;
	}

	public String getPhoneNumber() {
		return phoneNumber;
	}

	public void setPhoneNumber(String currentPhoneNumber) {
		this.phoneNumber = currentPhoneNumber;
		System.out.println("setPhoneNumber " + currentPhoneNumber);
	}

	public String getCallId() {
		return callId;
	}

	public void setCallId(String callId) {
		this.callId = callId;
		System.out.println("setCallId " + callId);
	}

	public String getVmwCallUuid() {
		return vmwCallUuid;
	}

	public void setVmwCallUuid(String vmwCallUuid) {
		this.vmwCallUuid = vmwCallUuid;
	}

}
